package com.syh.jn.scm.infrastructure.repository.model.base.logistics;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 物流公司
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_LOGISTICS")
@EqualsAndHashCode(callSuper = true)
public class LogisticsModel extends SuperBusinessModel {
  /**
   * 物流公司名字
   */
  @Column(name = "NAME", columnDefinition = "varchar(50) COMMENT '物流公司名字'")
  private String name;
  /**
   * 公司的联系电话
   */
  @Column(name = "TELEPHONE_NUM", columnDefinition = "varchar(50) COMMENT '公司的联系电话'")
  private String telephoneNum;
  /**
   * 是否提供冷链车: -1不提供,1提供
   */
  @Column(name = "IS_PROVIDE", columnDefinition = "smallint COMMENT '是否提供冷链车: -1不提供,1提供'")
  private Short isProvide;
  /**
   * 状态: -1停用, 1可用
   */
  @Column(name = "STATUS", columnDefinition = "smallint COMMENT '状态: -1停用, 1可用'")
  private Short status;
  /**
   * 期初应收总额
   */
  @Column(name = "BEGIN_RECEIVE_TOTAL_AMOUNT", columnDefinition = "decimal(19,6) COMMENT '期初应收总额'")
  private BigDecimal beginReceiveTotalAmount;
  /**
   * 期初应付总额
   */
  @Column(name = "BEGIN_PAYMENT_TOTAL_AMOUNT", columnDefinition = "decimal(19,6) COMMENT '期初应付总额'")
  private BigDecimal beginPaymentTotalAmount;
  /**
   * 所属终端系统:DOWNSTREAM,SUPPLIER,UPSTREAM
   */
  @Column(name = "TERMINAL_TYPE", columnDefinition = "varchar(50) COMMENT '所属终端'")
  private String terminalType;

}
